<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>大窗口|/web/html/clientFolder.html</title>
    <link rel="stylesheet" type="text/css" href="../css/basic.css">
    <link rel="stylesheet" type="text/css" href="../css/ui.css">
    <link rel="stylesheet" type="text/css" href="../css/g.css">
    <link rel="stylesheet" href="../css/zTreeStyle/zTreeStyle.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="../css/common.css">
	<link rel="stylesheet" type="text/css" href="../css/folder.css">
	<link rel="stylesheet" type="text/css" href="../css/global.css">
	<link rel="stylesheet" type="text/css" href="../css/filelist.css">
	<style type="text/css">
		.tag{
		  position: absolute;
		  right: 0;
		  top: -5px;
		  background: red;
		  color: #fff;
		  border-radius: 10px;
		  height: 10px;
		  min-width: 10px;
		  display:none;
		  line-height: 10px;
		  padding: 3px;
		  text-align: center;
		}
		#upDownloadAgainWindow{
			font-size:12px;
		}
	</style>
</head>
<body>
<input type="hidden" id="h_dsType" value="0">
<input type="hidden" id="h_path">
<input type="hidden" id="h_dsId">
<input type="hidden" id="h_abDir">
<input type="hidden" id="h_version">
<input type="hidden" id="h_bartd_id">
<input type="hidden" id="h_nid">
<input type="hidden" id="h_whichGetModel">
<input type="hidden" id="h_dsSecurityRank">
    <div class="popup border-blue prelative">
		<!-- <div class="folder-header">
			<h2 class="fl"><i class="inline-block folder-toolbar-icon folder-logo"></i>易备安文件夹同步配置管理</h2>
			<span class="fr">
				<a href="#"><i class="inline-block folder-toolbar-icon folder-lock"></i></a>
				<a href="#"><i class="inline-block folder-toolbar-icon folder-min"></i></a>
				<a href="#"><i class="inline-block folder-toolbar-icon folder-max"></i></a>
			</span>
		</div> -->
		<div class="folder-mainbody">
			<div class="fl folder-left">
				<ul id="treeDemo" class="ztree"></ul>
			</div>
			<div class="fr folder-right">
				<p id="j-address" class="folder-loc g-pl15"></p>
				<div class="folder-toolbar g-pl15">
					<div class="fl">
						<a class="fun-btn" href="javascript:;" id="j-upLevel"><i class="inline-block folder-toolbar-icon folder-arrowUp"></i>向上</a>
						<a class="fun-btn" href="javascript:;" id="j-back"><i class="inline-block folder-toolbar-icon folder-arrowBack"></i>回退</a>
						<a class="fun-btn" href="javascript:;" id="j-whole"><i class="inline-block folder-toolbar-icon folder-recover"></i>整个文件夹恢复</a>
						<a class="fun-btn" href="javascript:;" id="j-reset"><i class="inline-block folder-toolbar-icon folder-refresh"></i>刷新</a>
					</div>
					<div class="fr g-pr25">
						<div class="select-box inline-block">
							<div class="select-top"><input type="text" id="j-backupInp" class="select-input" value="" size="18" readonly = "readonly"><i class="inline-block folder-toolbar-icon folder-arrowDown unhide" id="folder-arrowDown"></i></div>
							<div class="select-bot">
								<ul id="j-backupList">
								
								</ul>

								<a href="javascript:;" id="j-backupMore" class="select-more unhide">更多数据版本</a>
							</div>
						</div>
						<!-- <a href="#"><i class="inline-block folder-toolbar-icon folder-grid"></i></a>
						<a href="#"><i class="inline-block folder-toolbar-icon folder-list"></i></a> -->
					</div>
				</div>
				<div style="background: #F4F4F4;">
					<table class="folder-table" cellpadding="0" cellspacing="0" style="width: 733px;">
						<thead>
							<tr>
								<th width="74"></th>
								<th width="220" class="g-al">文件名</th>
								<th width="74">状态</th>
								<th width="73">文件类型</th>
								<th width="109">文件大小</th>
								<th width="200"></th>
							</tr>
						</thead>
					</table>
				</div>
				<div class="folder-scroll" style="height: 512px;">
					<table id = "j-table" class="folder-table" cellpadding="0" cellspacing="0" style="width: 733px;">
						<tbody id="j-list">
							<script type="text/ysmart" data-name="list">
								<@ for(var item in DATA){ @>
								<tr data-id="<@=DATA[item].nid @>" <@ if(DATA[item].status == "删除"){ @> style="color:red;" <@ } @>>
									<td width="74"><i data-path="<@=DATA[item].path @>" class="inline-block folder-icon <@ if(DATA[item].type == "文件夹"){ @>folder-folder j-listItem<@ }else{ @><@= DATA[item].icoType @><@ } @>"></i></td>
									<td width="220" class="g-al"><span title="<@=DATA[item].name @>" data-path="<@=DATA[item].path @>" <@ if(DATA[item].type == "文件夹"){ @>class="j-listItem" style="cursor:pointer;"<@ } @>><@=DATA[item].name @></span></td>
									<!-- <td width="220" class="g-al"><input class="inp-name" type="text" value="<@=DATA[item].name @>" readonly="readonly" style="width:216px;<@ if(DATA[item].status == '删除'){ @> color:red;<@ } @>"></td> -->
									<td width="74"><@=DATA[item].status @></td>
									<td width="73"><@=DATA[item].type @></td>
									<td width="109"><@=DATA[item].type=="文件夹"?"-":DATA[item].fileSize @></td>
									<@ if(DATA[item].status != "失败"){ @>
										<@ if(DATA[item].type == "文件"){ @>
										<td style="text-align:center" width="200" class="g-al bartd" nid="<@=DATA[item].nid @>" id="bartd<@=item @>">
											<a href="#" onclick="files('<@=DATA[item].dsId @>','<@=DATA[item].path.split("\\").join("\\\\") @>','<@=DATA[item].version @>','<@=DATA[item].name @>','<@=item@>','<@=DATA[item].nid @>')" class="folder-table-btn c02">数据恢复</a>
										</td>
										<@ } @>
										<@ if(DATA[item].type == "文件夹"){ @>
										<td style="text-align:center" width="200" class="g-al bartd" nid="<@=DATA[item].nid @>" id="bartd<@=item @>">
											<a href="#" onclick="directors('<@=DATA[item].dsId @>','<@=DATA[item].path.split("\\").join("\\\\") @>','<@=DATA[item].version @>','<@=DATA[item].name @>','<@=item@>','<@=DATA[item].nid @>')" class="folder-table-btn c02">数据恢复</a>
										</td>
										<@ } @>
									<@ } @>
									<@ if(DATA[item].status == "失败"){ @>
									<td style="text-align:center" width="200" class="g-al bartd" nid="<@=DATA[item].nid @>" id="bartd<@=item @>">
									</td>
									<@ } @>
								</tr>
								<@ } @>
							</script>		
						</tbody>
					</table>
				</div>
			</div>
		</div>
    	<div class="bottom-remark" id="processBarOfBottom">
    		<span style="cursor:pointer;position: relative;" class="fr g-ml10" onclick="javascript:showDownloadBar();">
				<i class="inline-block folder-icon folder-historyload"></i>历史下载记录...
				<span class="tag j-tag" style="color:red;">0</span>
				<span class="tag" id="download_process_tag">0</span>
			</span>
    		<span style="cursor:pointer;position: relative;" class="fr" onclick="javascript:showUpDownloadFaileds(1);">
				<i class="inline-block folder-icon folder-download"></i>下载失败记录
				<span class="tag j-tag" style="color:red;">0</span>
				<span class="tag" id="download_failed_tag">0</span>
			</span>
    		<div class="whole bartd" nid="" id="" version="" path="" style='display:none;float:right;width:100px;height:20px;line-height:20px;margin:7px 7px;text-align: center;'>
				<div style='width:100px;height:20px;border:solid 1px #B8C86C;position:relative;'>
		       		<div id='processbar' style='width:0px;height:20px;background:#B8C86C;'></div>
		       		<div class='r-info' style='line-height:20px;position:absolute;top:0;left:0;width:100%;height:20px;text-align: center;'>下载进度:<span id='percentage' style='color:green'>0.00%</span></div>
	       		</div>
			</div>
    	</div>
    </div>
    	<script src="../js/plugin/jquery-1.9.1.min.js" type="text/javascript"></script>
    	<script src="../js/plugin/plugins.js" type="text/javascript"></script>
	    <script src="../js/data/ajax.js" type="text/javascript"></script>
	    <script src="../js/data/ebeim.js" type="text/javascript"></script>
	    <script src="../js/data/ebeimservice.js" type="text/javascript"></script>
    	<script src="../js/logic/folder.js"></script>
        <script src="../js/plugin/jquery.ztree.core-3.5.js" type="text/javascript"></script>
        <script src="../js/logic/clientFolder.js" type="text/javascript"></script>
        <script src="../js/data/global.js"></script>
        <script src="../js/logic/up_download_again.js" type="text/javascript"></script>
        
<div class="shadowDiv" id="versionWindow_shadowDiv"></div>
<div class="dialogDiv" id="versionWindow" style="width:450px;height:350px">
	<div class="dialogTipDiv">版本<span class="dialogTipContentSpan">恢复</span></div>
	<div class="dialogContentDiv" style="height:250px;overflow-y:auto;">
		<ul class="filechangelog-ul"></ul>
	</div>
	<div class="dialogOprtDiv">
		<!-- <button onclick=";" class="btn green">确定</button> -->
		<button onclick="hideDialog('versionWindow')" class="btn btn-default">取消</button>
	</div>
</div>

<div class="shadowDiv" id="upDownloadAgainWindow_shadowDiv"></div>
<div class="dialogDiv" id="upDownloadAgainWindow" style="width:700px;height:350px;">
	<div class="dialogTipDiv"><span class="dialogTipContentSpan">记录</span></div>
	<div class="dialogContentDiv" style="height:250px;overflow-y:auto;">
		<table id="upDownloadAgainTB" style="width:100%" border="0">
			
		</table>
	</div>
	<div class="dialogOprtDiv" tryAgainType="1">
		<div id="fenye" class="grid-page clearfix" style="display: inline-block;font-size:12px; line-height:29px; float:left;">
			<div id="r-info" class="page-right fr">
				<a href="javascript:;" class="j-page-first">首页</a>
				<a href="javascript:;" class="j-page-prev"><i class="i-arrow-left"></i>上一页</a>					
				<span>第<input type="text" value="1" style="width:30px; margin:0 5px; text-align:center;"  id="w-page">页</span>
				<a href="javascript:;" class="j-page-next" ><em>下一页</em><i class="i-arrow-right"></i></a>
				<a href="javascript:;" class="j-page-last">尾页</a>
			</div>
			<div id="l-info" class="page-right fr" style="margin-right:10px;">
				当前页(<span id="c-page"></span>/
				<span id="t-page"></span>)页
			</div>
		</div>
		<button id="tryAgainBtn" onclick="tryAgain()" class="btn btn-default">重新传输</button>
		<button class="j-unclear btn btn-default" style="background:#666; cursor:default;">清空</button>
		<button id="clearBtn" onclick="deleteFaileds(0)" class="j-clear btn btn-default" style="display:none;">清空</button>
		<button onclick="hideDialog('upDownloadAgainWindow')" class="btn btn-default">取消</button>
	</div>
</div>

<div class="shadowDiv" id="downloadWindow_shadowDiv"></div>
<div class="dialogDiv" id="downloadWindow" style="width:700px;height:350px;">
	<div class="dialogTipDiv">下载<span class="dialogTipContentSpan">进度</span></div>
	<div class="dialogContentDiv" style="height:250px;overflow-y:auto;">
		<table id="downloadProcessbarTB" style="width:100%" border="0">
			
		</table>
	</div>
	<div class="dialogOprtDiv">
		<button class="j-undelete btn btn-default" style="background:#666; cursor:default;">清除</button>
		<button onclick="deleteDownloadBar()" class="j-delete btn btn-default" style="display:none;">清除</button>
		<button onclick="hideDialog('downloadWindow')" class="btn btn-default">隐藏</button>
	</div>
</div>

<div class="window">
	<div class="w-head">
		<table width="96%" align="center">
			<tr>
				<td width="17%" >数据恢复至</td>
				<td width="63%"><input id="ab-dir" typr="text"/></td>
				<td width="20%" style="text-align:center"><button class="btn btn-default" onclick="selectParentPath()">返回上一级</button></td>
			</tr>
		</table>
	</div>
	<div class="w-dir-tree">
		<ul id="pathTree" class="ztree"></ul>
	</div>
	<div class="w-dir-list">
		<ul>
		</ul>
	</div>
	<div class="w-dir-confirm">
		<button class="btn btn-default cancel" onclick="cancelDir()">取消</button>
		<button id="recoveyBtn" class="btn btn-success" onclick="confirmDir()">确定</button>
	</div>
</div>
</body>
</html>
